﻿using System;
using System.Text;
using System.Collections;

namespace Model
{
    //---------------------------------------------------------------------------------------------
    public enum LoaiDanhMuc
    {
        None,
        DanToc,
        TonGiao,
        QuocTich,
        TrinhDoHocVan,
        TrinhDoNgoaiNgu,
        TrinhDoTinHoc,
        BangCap,
        ChuyenMon,
        LoaiTaiKhoan,
        LoaiHopDongLaoDong,
        DonViTinh,
        NhomKhachHang,
        PhuongThucThanhToan,
        DanhMucKho,
        HangSanXuat,
        NuocSanXuat,
        LoaiChiPhi
    }

    public enum LoaiThietDat
    {
        None,
        DiaChi,
        DienThoai,
        Fax,
        Website,
        Email,
        MaSoThue,
        GiayPhepKinhDoanh,
        SoTaiKhoan,
        NganHang,
        LuongToiThieu,
        Anh,
        BHYT,
        BHXH,
        BHTN,
        NgayTinhLuong
    }

    public enum FormStatus
    {
        Edit,
        View
    }

    //---------------------------------------------------------------------------------------------
    public class SPParam
    {
        public string orderColumn = "";
        public string orderExpression = "";
        public string whereExpression = "";
        public string otherParam = null;
        public object objParam = null;

        public SPParam()
        {
        }

        public SPParam(string orderColumn, string orderExpression, string whereExpression)
        {
            this.orderColumn = orderColumn;
            this.orderExpression = orderExpression;
            this.whereExpression = whereExpression;
        }
    }

    //---------------------------------------------------------------------------------------------
    public delegate void OnCompletedEventHandler(object sender, OnCompletedEventArgs e);
    public class OnCompletedEventArgs : EventArgs
    {
        public object objectValue;

        public OnCompletedEventArgs(object objectValue)
        {
            this.objectValue = objectValue;
        }
    }
}